package com.heima.common.exception;

import com.heima.model.common.dtos.ResponseResult;
import lombok.Data;

/**
 * 用户自定义的异常
 * @作者 itcast
 * @创建日期 2021/1/23 9:15
 **/
@Data
public class CustomException extends RuntimeException {
    private ResponseResult responseResult;
    public CustomException(ResponseResult responseResult) {
        this.responseResult = responseResult;
    }
}
